package com.mzj.saas.mservice.pay.controller;

import com.mzj.saas.mservice.pay.service.AliPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 支付宝
 * @author hp
 *
 */
@Controller
@RequestMapping("/aliPay")
public class AliPayController {
	
	@Autowired
	private AliPayService aliPayService;
	
	/**
	 * 支付宝app支付后端回调通知
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	@RequestMapping("/appPayCallback")
	@ResponseBody
    public void appPayCallback(HttpServletRequest request, HttpServletResponse response) throws Exception{
		aliPayService.appPayCallback(request, response);
    }


}
